home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
kernel
/
jumpto
/
jumpto.w90
< prev
next >
Wrap
Text File
|
1995-08-08
|
811b
|
41 lines
/* This routine works with WATCOM-C/386 version 9.0
(See other jumpto.w* files for other configurations)
It uses the stack parameter passing convention (used by NLMs) and
no stack checking
compile with:
wcl386 -4s -c -I../include -zp2 -zq -oilrt -s file.c
*/
typedef int (*fun)();
void DB(void);
void NDB(void);
#pragma aux DB = "add esp,14H" \
"pop eax" \
"pop ebp" \
"add esp,0CH" \
"jmp eax"
#pragma aux NDB = "add esp,8H" \
"pop eax" \
"pop ebp" \
"jmp eax"
void _jumpToMethod( f )
fun f;
{
/* pop_this_stack_frame; */
/* pop previous (generics) stack frame */
NDB();
}